<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>小区管理</title>
    <link href="../lib/layui/css/layui.css" rel="stylesheet" type="text/css" media="screen"/>
    <script src="../lib/jquery-3.3.1.min.js" type="text/javascript"></script>
    <script src="../lib/layui/layui.all.js" type="text/javascript"></script>
    <script src="../js/basicinfo/basicCommunity.js" type="text/javascript"></script>
</head>
<body class="layui-layout-body" style="background-color:white;">
        <div class="query" style="padding-top: 10px; padding-left: 10px;">
            <div class="layui-inline">
                <div class="layui-form">
                    <div class="layui-input-inline">
                        小区名称：
                    </div>
                    <div class="layui-input-inline">
                        <input id="searchBlockName"  class="layui-input" autocomplete="off" placeholder="请输入小区名称进行搜索">
                    </div>
                </div>
            </div>
            <button class="layui-btn " lay-submit lay-filter="search_block"  id="reloadBlock">查询</button>
            <button class="layui-btn"  type="button" onclick="reloadCommunity2()">刷新</button>
            <button class="layui-btn"  type="button" onclick="addBlock()">添加</button>
            <button class="layui-btn"  type="button" id="sync" >同步</button>
        </div>
        <div id="content">
            <table class="layui-table" id="basicBlockTable"  lay-filter="basicBlockTable"></table>
        </div>

    <!-- 增加页面 -->
    <div style="display:none;" id="blockAdd">
        <form id="product_form" lay-filter="product_form" class="layui-form"  action="" style="padding: 20px;">
            <input type="hidden" id="companyId" name="companyId">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">小区名称<span style="color:red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" name="name" placeholder="输入小区名称" lay-verify="required" autocomplete="off"
                               class="layui-input">
                    </div>
                    <label class="layui-form-label">区域<span style="color:red">*</span></label>
                    <div class="layui-input-inline">
                        <div id="ssqy" class="xm-select-demo"></div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">联系人<span style="color:red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" name="linkman" placeholder="输入联系人" lay-verify="required" autocomplete="off"
                               class="layui-input">
                    </div>
                    <label class="layui-form-label">地址<span style="color:red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" name="address" placeholder="输入小区地址" lay-verify="required" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">电话<span style="color:red">*</span></label>
                <div class="layui-input-inline">
                    <input type="text" name="contactNumber" placeholder="输入联系电话" lay-verify="phone" autocomplete="off"
                           class="layui-input">
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">邮箱<span style="color:red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" name="email" placeholder="输入联系邮箱" lay-verify="email" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-inline">
                        <textarea id="remark" style="width:200px; height: 100px;" placeholder="备注" name="remark"  ></textarea>
                    </div>
                </div>
            </div>

            <div class="layui-form-item mt30">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" id="block_form" lay-filter="block_form">提交</button>
                    <button class="layui-btn" lay-submit="" id="block_up" lay-filter="block_up">更新</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>

</body>

</html>